class CreatePermissionUrls < ActiveRecord::Migration[5.2]
  def change
    create_table :permission_urls do |t|
      t.string :module
      t.string :controller
      t.string :action
      t.string :data

      t.timestamps
    end

    add_reference :permission_urls, :permissions, foreign_key: true

  end
end
